import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isShowPopupShadow: false,
    loading: false,
  },
  mutations: {
    changeIsShowPopupShadow(state, value) {
      state.isShowPopupShadow = value
      // console.log('我需要在组件中commit去执行的');
    },
    changeLoading(state, status) {
      state.loading = status
    },

  },
  actions: {},
  modules: {}
})